﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="carinsurance_setting_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Settings for Auto Lead - GG-CRM - กล้วยๆ.com - Teledirect Thailand</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <h1>
        <asp:Label runat="server" ID="lblPageTitle" Text="Settings for Auto Lead" /></h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
        ID="lblLangOption" />
    <asp:Label runat="server" Text="1" Visible="false" ID="lblSettingID" />
    <div class="bc2">
        <asp:Label runat="server" ID="lblSiteLocation" Text="You are here : " CssClass="bclist" />
        <asp:SiteMapPath SiteMapProvider="SiteUserSiteMapProvider" ID="smpProvider" runat="server"
            PathSeparator=" : ">
            <PathSeparatorStyle CssClass="bcarrow" />
            <CurrentNodeStyle CssClass="bclist" />
            <NodeStyle CssClass="bclink" />
            <RootNodeStyle CssClass="bclink" />
        </asp:SiteMapPath>
        <div class="clear">
        </div>
    </div>
    <div class="topdisplay pb10">
        <table class="sTable" width="100%" border="0" cellpadding="3" cellspacing="3">
            <tr>
                <td>
                    <asp:Label runat="server" ID="Label4" Text="Min. Premium " />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtMinPremium" Width="120px" MaxLength="10" />
                    <asp:RequiredFieldValidator ID="rfvMinPremium" Display="Dynamic" ValidationGroup="setting"
                        runat="server" ControlToValidate="txtLastQuoteMins" ErrorMessage="Require After Last Quote (Mins)"
                        Text="*" />
                    <asp:RangeValidator ID="rgvMinPremium" Display="Dynamic" ValidationGroup="setting"
                        ControlToValidate="txtMinPremium" runat="server" Type="Integer" MinimumValue="100"
                        MaximumValue="60000" Text="*" ErrorMessage="Min. Premium Min = 100 to Max 60,000" />
                    <asp:Button runat="server" ID="btnShowCurrent" Text="Load Current Setting" OnClientClick="javascript:return confirm('Are you sure?');"
                        CssClass="blueB ml10" OnClick="btnShowCurrent_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="Label1" Text="Quote Date Start " />&nbsp;
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlQuoteStart" Width="150px">
                    </asp:DropDownList>
                    To
                    <asp:DropDownList runat="server" ID="ddlQuoteEnd" Width="150px">
                    </asp:DropDownList>
                    <asp:Label runat="server" ID="lblQuoteDateDesc" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="Label2" Text="Coverage Co: Date" />&nbsp;
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlCommStart" Width="150px">
                    </asp:DropDownList>
                    To
                    <asp:DropDownList runat="server" ID="ddlCommEnd" Width="150px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="Label3" Text="Order Option" />
                </td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlOrderByOption" Width="320px">
                        <asp:ListItem Text="QuoteDate ASC, CoverageCommenceDate ASC" Value="1" />
                        <asp:ListItem Text="QuoteDate ASC, CoverageCommenceDate DESC" Value="2" />
                        <asp:ListItem Text="QuoteDate DESC, CoverageCommenceDate ASC" Value="3" />
                        <asp:ListItem Text="QuoteDate DESC, CoverageCommenceDate DESC" Value="4" />
                        <asp:ListItem Text="CoverageCommenceDate ASC, QuoteDate  ASC" Value="5" />
                        <asp:ListItem Text="CoverageCommenceDate ASC, QuoteDate  DESC" Value="6" />
                        <asp:ListItem Text="CoverageCommenceDate DESC, QuoteDate  ASC" Value="7" />
                        <asp:ListItem Text="CoverageCommenceDate DESC, QuoteDate  DESC" Value="8" />
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    After Last Quote
                </td>
                <td>
                    <asp:TextBox runat="server" ID="txtLastQuoteMins" MaxLength="5" Width="120px">120</asp:TextBox>
                    <b>Minutes</b>
                    <asp:RequiredFieldValidator ID="rfvLastQuoteMins" Display="Dynamic" ValidationGroup="setting"
                        runat="server" ControlToValidate="txtLastQuoteMins" ErrorMessage="Require After Last Quote (Mins)"
                        Text="*" />
                    <asp:RangeValidator ID="rgvLastQuoteMins" ValidationGroup="setting" ControlToValidate="txtLastQuoteMins"
                        runat="server" Type="Integer" MinimumValue="0" MaximumValue="6000" Text="*" Display="Dynamic"
                        ErrorMessage="After Last Quote (Mins) Min = 0 to Max 6000" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <h4>
                        (24 hours format)</h4>
                </td>
            </tr>
            <tr>
                <td>
                    Lead Opening Time 1
                </td>
                <td>
                    <b>FROM:</b>
                    <asp:DropDownList runat="server" ID="ddlLeadOpenStartTime1Hour" />
                    :<asp:DropDownList runat="server" ID="ddlLeadOpenStartTime1Min" />
                    <b>TO:</b>
                    <asp:DropDownList runat="server" ID="ddlLeadOpenEndTime1Hour" />
                    :<asp:DropDownList runat="server" ID="ddlLeadOpenEndTime1Min" />
                </td>
            </tr>
            <tr>
                <td>
                    Lead Opening Time 2
                </td>
                <td>
                    <b>FROM:</b>
                    <asp:DropDownList runat="server" ID="ddlLeadOpenStartTime2Hour" />
                    :<asp:DropDownList runat="server" ID="ddlLeadOpenStartTime2Min" />
                    <b>TO:</b>
                    <asp:DropDownList runat="server" ID="ddlLeadOpenEndTime2Hour" />
                    :<asp:DropDownList runat="server" ID="ddlLeadOpenEndTime2Min" />
                </td>
            </tr>
            <tr>
                <td>
                    Lead Opening Time 3
                </td>
                <td>
                    <b>FROM:</b>
                    <asp:DropDownList runat="server" ID="ddlLeadOpenStartTime3Hour" />
                    :<asp:DropDownList runat="server" ID="ddlLeadOpenStartTime3Min" />
                    <b>TO:</b>
                    <asp:DropDownList runat="server" ID="ddlLeadOpenEndTime3Hour" />
                    :<asp:DropDownList runat="server" ID="ddlLeadOpenEndTime3Min" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Button runat="server" ID="btnPreview" Text="Check Sample Result" CssClass="blueB ml10"
                        OnClick="btnPreview_Click" ValidationGroup="setting" />
                    <asp:Button runat="server" ID="btnSubmit" Text="Apply This Setting" OnClientClick="javascript:return confirm('Are you sure to APPLY THIS SETTING?');"
                        CssClass="blueB ml10" OnClick="btnSubmit_Click" ValidationGroup="setting" />
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label runat="server" ID="lblMessage" Font-Bold="true" />
                </td>
            </tr>
        </table>
    </div>
    <div>
        <asp:Label runat="server" ID="lblRecordCount" CssClass="red" />
    </div>
    <br />
    <b>Effective Setting</b>
    <div class="toggle">
        <asp:GridView ID="gvSetting" CssClass="sTable" Width="100%" runat="server" AutoGenerateColumns="true">
            <Columns>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <div class="clear">
        </div>
    </div>
    <br />
    <b>Customer Count</b>
    <div class="toggle">
        <asp:GridView ID="gvCustomerCount" CssClass="sTable" Width="100%" runat="server"
            AutoGenerateColumns="true">
            <Columns>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <div class="clear">
        </div>
    </div>
    <br />
    <b>Sample Result - Top 50 records</b>
    <div class="toggle">
        <asp:GridView ID="gvResult" CssClass="sTable" Width="100%" runat="server" AutoGenerateColumns="true">
            <Columns>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle Font-Bold="true" Font-Size="14px" />
            <HeaderStyle />
            <EditRowStyle />
            <AlternatingRowStyle />
            <RowStyle />
        </asp:GridView>
        <div class="clear">
        </div>
    </div>
</asp:Content>
